package com.eastshop.order.vo;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.eastshop.product.vo.Product;



/** @author Hibernate CodeGenerator */
public class Orderitem implements Serializable {

    /** identifier field */
    private Integer itemid;

    /** nullable persistent field */
    private Integer count;

    /** nullable persistent field */
    private Double subtotal;

    /** persistent field */
    private Product product;

    /** persistent field */
    private com.eastshop.order.vo.Order order;

    /** full constructor */
    public Orderitem(Integer count, Double subtotal, Product product, com.eastshop.order.vo.Order order) {
        this.count = count;
        this.subtotal = subtotal;
        this.product = product;
        this.order = order;
    }

    /** default constructor */
    public Orderitem() {
    }

    /** minimal constructor */
    public Orderitem(Product product, com.eastshop.order.vo.Order order) {
        this.product = product;
        this.order = order;
    }

    public Integer getItemid() {
        return this.itemid;
    }

    public void setItemid(Integer itemid) {
        this.itemid = itemid;
    }

    public Integer getCount() {
        return this.count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Double getSubtotal() {
        return this.subtotal;
    }

    public void setSubtotal(Double subtotal) {
        this.subtotal = subtotal;
    }

    public Product getProduct() {
        return this.product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public com.eastshop.order.vo.Order getOrder() {
        return this.order;
    }

    public void setOrder(com.eastshop.order.vo.Order order) {
        this.order = order;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("itemid", getItemid())
            .toString();
    }

}
